package com.qf.day02;


import java.util.Scanner;

public class IfDemo2 {
    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入成绩");
        double grade=sc.nextDouble();
        if(grade<15){
            System.out.println("请输入性别");
            String sex=sc.next();
            if(sex.equals("男")){
                System.out.println("进入男子决赛");
            }else if(sex.equals("女")){
                System.out.println("进入女子决赛");
            }else{
                System.out.println("性别输入错误");

            }
        }else{
            System.out.println("未进入决赛");
        }



    }
}
